#include <iostream>
using namespace std;

class Date {
private:
    int month;
    int day;
    int year;
public:
    Date(int month,int day,int year) {
        this->year = year;
        this->month = month;
        this->day = day;
    }
    Date() {
        day = 1;
        month = 1;
        year = 2019;
    }
    Date(const Date &date) {
        this->year = date.year;
        this->month = date.month;
        this->day = date.day;
    }

    void setDate(int month,int day,int year) {
        this->year = year;
        this->month = month;
        this->day = day;
    }

    void setMon(int month) {
        this->month = month;
    }

    void setYear(int year) {
        this->year = year;
    }

    void setDay(int day) {
        this->day = day;
    }

    friend ostream &operator<<(ostream &os, const Date &date) {
        os << "month: " << date.month << " day: " << date.day << " year: " << date.year;
        return os;
    }
};

int main() {
    Date date(2019,12,1);
    cout<<date<<endl;
    date.setDate(2019,12,2);
    cout<<date<<endl;
    date.setYear(2020);
    cout<<date<<endl;
    return 0;
}